<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        const arr = [11, 22, 33, 44]
        const abb = arr.filter((item) => item % 2 === 0)
        console.log(abb);
        const sub = arr.reduce((prev, item) => {
            console.log(prev, item);
            return prev + item
        }, 0)
        const sub1 = arr.reduce((prev, item) => prev + item, 0)
        console.log(sub1);


        console.log(sub);


        const Map1 = arr.map((value, index) => ({ value, index }))
        console.log(Map1);
        
    </script>
</body>

</html>